<template>
  <main></main>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
import { fc } from 'flutter-core';
import { useSafeHeightStore } from '@/stores/safeHeight';

const router = useRouter();
const safeHeight = useSafeHeightStore();

fc.init().then(() => {
  fc.getSafeHeight().then((res: number[]) => {
    safeHeight.setup(res);
  })
}).catch((err) => {
  console.error(err)
}).finally(() => {
  router.replace('/login');
});

</script>
